home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_11_12
/
splash
/
assoc.cpp
< prev
next >
Wrap
Text File
|
1993-01-14
|
560b
|
25 lines
#ifdef TESTASSOC
#include <iostream.h>
#include "splash.h"
#include "assoc.h"
main()
{
Assoc<int> a;
a("one")= 1; a("two")= 2; a("three")= 3;
cout << a << endl;
cout << "Keys:" << endl << a.keys() << endl;
cout << "Values:" << endl << a.values() << endl;
cout << "a.isin(\"three\")= " << a.isin("three") << endl;
cout << "a.isin(\"four\")= " << a.isin("four") << endl;
int t= a.adelete("two");
cout << "a.adelete(\"two\") returns: " << t << ", a= " << endl << a << endl;
}
#endif